from flask import Blueprint, send_from_directory
from get_config.index import download_dir

download = Blueprint('download', __name__)


@download.route("/download_file", methods=['GET'])
def download_file():
    return send_from_directory(path='kkkk.txt', directory=download_dir, as_attachment=True, download_name="马某.txt")
